home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Freelog 125
/
Freelog_MarsAvril2015_No125.iso
/
Musique
/
Quod Libet
/
quodlibet-3.3.0-installer.exe
/
bin
/
quodlibet
/
formats
/
aac.pyc
(
.txt
)
< prev
next >
Wrap
Python Compiled Bytecode
|
2014-12-31
|
2KB
|
51 lines
# Source Generated with Decompyle++
# File: in.pyc (Python 2.7)
from _audio import AudioFile
extensions = [
'.aac',
'.adif',
'.adts']
try:
from mutagen.aac import AAC
except ImportError:
extensions = []
class AACFile(AudioFile):
'''ADTS/ADIF files'''
format = 'AAC'
mimes = [
'audio/x-aac']
fill_length = True
def __init__(self, filename):
audio = AAC(filename)
self['~#length'] = audio.info.length
self['~#bitrate'] = int(audio.info.bitrate / 1000)
self.sanitize(filename)
def write(self):
pass
def reload(self, *args):
title = self.get('title')
super(AACFile, self).reload(*args)
if title is not None:
self.setdefault('title', title)
def can_change(self, k = None):
if k is None:
return [
'title']
return None == 'title'
info = AACFile
types = [
AACFile]